all: build/netlogin-windows-amd64.exe build/netlogin-windows-386.exe  build/netlogin-linux-amd64 build/netlogin-linux-arm64  build/netlogin-darwin-amd64

build/netlogin-windows-amd64.exe:
	GOOS=windows GOARCH=amd64 go build -o build/netlogin-windows-amd64.exe

build/netlogin-windows-386.exe:
	GOOS=windows GOARCH=386 go build -o build/netlogin-windows-386.exe

build/netlogin-linux-amd64:
	GOOS=linux GOARCH=amd64 go build -o build/netlogin-linux-amd64

build/netlogin-linux-arm64:
	GOOS=linux GOARCH=arm64 go build -o build/netlogin-linux-arm64

build/netlogin-darwin-amd64:
	GOOS=darwin GOARCH=amd64 go build -o build/netlogin-darwin-amd64

# docker linux adm64
docker: netlogin-linux-amd64
	docker build -t genshen/netlogin .
	rm netlogin-linux-amd64

netlogin-linux-amd64:
	GOOS=linux GOARCH=amd64 go build -o netlogin-linux-amd64

clean:
	rm -rf build
